package com.oascarmovie.rpc;

import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;

public class VersionRPCService extends RPCService {
	protected String moduleName = "version";

	public VersionRPCService(Context context) {
		super(context);
	}

	public void checkAppVersion(String appName, RPCServiceCallback callback) {
		try {
			JSONObject bean = new JSONObject();

			bean.put("appname", appName);

			this.call(this.moduleName, "checkappversion", bean, callback);
		}
		catch (JSONException e) {
			e.printStackTrace();
		}
	}

}
